image {
  font-size: 0;
}

.container {
  width: 100vw;
  height: 100%;
  background: #eee;
  box-sizing: border-box;
  padding-bottom: 100rpx;
  overflow: hidden;
}

.goods_detail_btn_wrapper {
  display: flex;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100rpx;
  border-top: 1rpx solid #ddd;
  background: #fff;
  text-align: center;

  image {
    width: 40%;
    height: 40%;
  }

  .home,
  .headset,
  .cart {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: inherit;
    border-right: 1rpx solid #ddd;
    text-align: center;
  }

  .buy,
  .add_to_cart {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: inherit;
    font-size: 28rpx;
  }

  .add_to_cart {
    background: #e43130;
    color: #fff;
  }

  .cart {
    position: relative;

    .goods_count {
      position: absolute;
      top: 20rpx;
      right: 15rpx;
      width: 30rpx;
      height: 30rpx;
      border-radius: 50%;
      background: #e43130;
      color: #fff;
      font-size: 20rpx;
      line-height: 30rpx;
    }
  }
}

.selection_area {
  width: 100vw;
  background: #fff;
  box-sizing: border-box;
  padding: 0 15rpx;
  margin-bottom: 20rpx;

  .specifications,
  .distribution {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80rpx;

    view {
      text {
        font-size: 28rpx;
      }

      .area {
        color: #999;
        margin-left: 30rpx;
      }
    }

    image {
      width: 30rpx;
      height: 30rpx;
    }
  }
}

.guess_you_like_it_wrapper {
  width: 100vw;
  box-sizing: border-box;
  background: #fff;
  padding: 30rpx 15rpx;
  margin-bottom: 20rpx;

  .title {
    font-size: 30rpx;
    line-height: 3;
  }

  scroll-view {
    width: 100%;
    white-space: nowrap;

    .goods_list_item {
      display: inline-block;
      width: 230rpx;
      padding: 0 15rpx;
      box-sizing: border-box;
      .image_wrapper {
        width: 100%;
        height: 70%;

        image {
          width: 100%;
          height: 100%;
        }
      }

      .goods_name {
        height: 20%;
        color: #666;
        font-size: 28rpx;
      }

      .goods_price {
        height: 10%;
        color: #e43130;
        line-height: 2;
      }
    }
  }
}

.product_info_wrapper {
  width: 100%;

  swiper {
    height: 600rpx;

    swiper-item {
      width: 100vw;

      image {
        width: 100%;

      }
    }
  }

  .bg {

    // height: 600rpx;
    image {
      width: 100%;
    }
  }

  .product_info {
    background: #fff;
    box-sizing: border-box;
    padding: 30rpx 20rpx;
    margin-bottom: 20rpx;
    
    .product_name_wrapper {
      position: relative;
      margin-bottom: 50rpx;

      .name {
        font-size: 36rpx;
        line-height: 2;
      }

      .brief {
        color: #888;
        font-size: 30rpx;
      }

      .collect_wrapper {
        position: absolute;
        top: 50%;
        right: 15rpx;
        transform: translateY(-50%);
        width: 60rpx;
        height: 60rpx;

        image {
          width: 100%;
        }
      }
    }

    .price_wrapper {
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #e43130;

      .price {
        flex: 0 0 80%;
        font-size: 50rpx;
        font-weight: bold;

        text {
          display: inline-block;
          height: 0;
          line-height: 0;
        }

        .sell_volume {
          color: #555;
          font-size: 20rpx;
          font-weight: normal;
          margin-left: 20rpx;
        }
      }

      .promotion_desc {
        flex: 0 0 20%;
        font-size: 26rpx;
        text-align: center;
      }
    }
  }
}

.comment_wrapper {
  background: #fff;
  margin-bottom: 20rpx;

  .comment_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100vw;
    height: 100rpx;
    border-bottom: 1rpx solid #ddd;
    box-sizing: border-box;
    color: #222;
    font-size: 30rpx;
    padding: 0 20rpx;

    .comment_top_right {
      display: flex;
      align-items: center;

      image {
        width: 30rpx;
        height: 30rpx;
        margin-left: 10rpx;
      }
    }
  }

  .no_comment {
    color: #999;
    font-size: 30rpx;
    text-align: center;
    padding: 50rpx 0;
  }

  .comment_content_wrapper {
    box-sizing: border-box;
    padding: 0 20rpx;

    .avatar_wrapper {
      display: flex;
      align-items: center;
      padding: 20rpx 0;

      image {
        width: 80rpx;
        height: 80rpx;
        background: #ccc;
        border-radius: 50%;
        overflow: hidden;
      }

      text {
        color: #666;
        margin-left: 30rpx;
      }
    }

    .add_time {
      color: #777;
      font-size: 30rpx;
      line-height: 60rpx;
    }

    .content {
      font-size: 30rpx;
      color: #222;
      margin-bottom: 30rpx;
    }

    .pic {
      width: 100%;
      height: 150rpx;
      margin-bottom: 30rpx;

      image {
        width: 150rpx;
        height: 100% !important;
        margin-right: 15rpx;
      }
    }
  }
}

.QA_wrapper {
  width: 100vw;
  box-sizing: border-box;
  background: #fff;
  padding: 0 15rpx;
  margin-bottom: 20rpx;

  .title_wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80rpx;
    border-bottom: 1rpx solid #ddd;
    font-size: 30rpx;

    view.right {
      color: #666;
      font-size: 24rpx;
      display: flex;
      align-items: center;

      image {
        width: 24rpx;
        height: 24rpx;
      }
    }
  }

  .QA_list {
    padding: 15rpx 0;

    .Q_item {
      display: flex;
      align-items: center;
      width: 100vw;
      font-size: 30rpx;
      height: 40rpx;
      padding: 10rpx 0;

      image {
        width: 40rpx;
        height: 40rpx;
        vertical-align: bottom;
        margin-right: 10rpx;
      }
    }
  }
}

.attribute_wrapper {
  width: 100vw;
  background: #fff;
  box-sizing: border-box;
  padding: 35rpx 18rpx;
  // margin-bottom: 20rpx;

  .title {
    color: #222;
    font-size: 30rpx;
    line-height: 3;
  }

  .attribute_item {
    display: flex;
    border-top: 1rpx dotted #333;
    font-size: 24rpx;
    padding: 25rpx 0;
    box-sizing: border-box;
    .attribute_name {
      color: #888;
      flex: 0 0 20%;
    }

    .attribute_content {
      flex: 0 0 70%;
    }
  }
}

.specification_wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  .mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
  }

  .specification_content_wrapper {
    position: absolute;
    bottom: 100rpx;
    left: 0;
    z-index: 20;
    width: 100%;
    background: #fff;
    box-sizing: border-box;
    padding: 0 20rpx 50rpx 30rpx;

    .top {
      display: flex;
      align-items: flex-end;
      position: relative;
      padding: 30rpx 0;
      box-sizing: border-box;
      .pro_img {
        width: 150rpx;
        height: 150rpx;
        margin-right: 12rpx;

        image {
          width: 100%;
          background: #f3f0f0;
        }
      }

      .pro_info {
        flex: 1;

        text {
          display: block;
          color: #333;
          font-size: 24rpx;
          line-height: 1.5;
        }

        .price {
          color: #e43130;
        }
      }

      .close {
        position: absolute;
        top: 20rpx;
        right: 20rpx;
      }
    }

    .specification {
      font-size: 28rpx;

      .good_specification {
        .good_name {
          line-height: 3;
        }

        .specification_list {
          display: flex;
          margin-bottom: 40rpx;

          .specification_item {
            border: 1rpx solid #333;
            border-radius: 5rpx;
            padding: 15rpx;
            margin-right: 20rpx;

            &.selected {
              color: #e43130;
              border-color: #e43130;
            }
          }
        }
      }
    }

    .count_wrapper {
      font-size: 28rpx;

      .number {
        line-height: 3;
      }

      .btn_wrapper {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        line-height: 60rpx;

        .reduce,
        .increase {
          border: 1rpx solid #000;
          box-sizing: border-box;
          padding: 0 30rpx;
        }

        .increase {
          border-right: none;
          border-top-left-radius: 5rpx;
          border-bottom-left-radius: 5rpx;

          &.noIncrease {
            border-color: #999;
            color: #999;
          }
        }

        .reduce {
          border-left: none;
          border-top-right-radius: 5rpx;
          border-bottom-right-radius: 5rpx;
        }

        .select_good_count {
          width: 120rpx;
          height: 60rpx;
          border: 1rpx solid #000;
          text-align: center;
        }
      }
    }
  }
}

.ellipsis {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}